package conson.tech.manage.coupons.constant;

/**
 * InterfaceName: CouponsConstants
 * Description: 优惠券系统常量
 * Author: XYF
 * Date: 2020/7/23 9:13
 * Version: 1.0
 */
public class CouponsConstants {

    /**
     * 领券活动Redis前缀
     */
    public static final String ACTIVITY_COUPON_PREFIX = "activity:conpon:";

    /**
     * 用户领券分布式锁
     */
    public static final String GRANT_COUPON_LOCK = "activity:conpon:grant:lock";

    /**
     * 领券中心领券修改库存分布式锁
     */
    public static final String ACTIVITY_COUPON_GET_STOCK_LOCK = "activity:conpon:get:stock:lock";
    /**
     * 领券中心限时购修改库存分布式锁
     */
    public static final String ACTIVITY_COUPON_TIME_STOCK_LOCK = "activity:conpon:time:stock:lock";

    /**
     * 直接领取活动修改库存分布式锁
     */
    public static final String ACTIVITY_DIRECT_UPDATE_STOCK_LOCK = "activity:direct:update:stock:lock";

    /**
     * 测试生成操作记录的用户
     */
    public static final String CURRENTUSERNAME = "广电测试";

    /**
     * 财务结算状态已结算
     */
    public static final String SETTLED = "已结算";
    /**
     * 财务结算状态未结算
     */
    public static final String UNSETTLED = "未结算";
}
